 <%@ page import="com.cqeec.myblog.model.Blogger"%>
  <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<div class="row blog-head">
	<div class="col blog-head-image">
		<div class="float-right login-div">
			<%
			Blogger blogger = (Blogger) session.getAttribute("blogger");
				if (blogger == null) {
					//未登录
			%>
			<a href="login.jsp">登录</a>
			<%
				} else {
					//登录了
			%>
			<span id="nickSpan" style="color: red; font-weight: bold;"><%=blogger.getNickname()%>&nbsp;&nbsp;</span>
			<a href="${contentPath }/blogger/logout.html">注销</a>
			<%
				}
			%>
		</div>
	</div>
</div>
<div class="row bg-light">
	<div class="col-sm-9 offset-sm-1 col-md-8 offset-md-2"
		style="padding: 0px;">
		<nav class="navbar navbar-expand-sm navbar-light bg-light">
			<a class="navbar-brand" href="/MyBlog/index.html">My Blog</a>
			<button class="navbar-toggler d-lg-none" type="button"
				data-toggle="collapse" data-target="#collapsibleNavId"
				aria-controls="collapsibleNavId" aria-expanded="false"
				aria-label="Toggle navigation">
				<span class="navbar-toggler-icon"></span>
			</button>
			<div class="collapse navbar-collapse" id="collapsibleNavId"
				style="padding-left: 80px;">
				<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
					<li class="nav-item active"><a class="nav-link" href="/MyBlog/index.html">博文
							<span class="sr-only">(current)</span>
					</a>
					</li>
					<li class="nav-item"><a class="nav-link" href="/MyBlog/albumServlet?operation=albumPage">相册</a></li>
					<li class="nav-item"><a class="nav-link" href="#">关于我...</a></li>
				</ul>
				<form class="form-inline my-2 my-lg-0">
					<input class="form-control mr-sm-2" type="text"
						placeholder="关键字...">
					<button class="btn btn-outline-success my-2 my-sm-0" type="submit">搜索</button>
				</form>
			</div>
		</nav>
	</div>
</div>
